/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2022-01-31 09:13:42
 * @LastEditors: GGB
 * @LastEditTime: 2022-01-31 09:25:05
 */
const fs = require('fs')
const zlib=require('zlib')
const src = fs.createReadStream('./qiniu-test.js')
const writeDesc=fs.createWriteStream('./test.gz')
// src.pipe(process.stdout)
// src.pipe(writeDesc)
src.pipe(zlib.createGzip()).pipe(writeDesc)